<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>

    // setInterval(function () {
    //   document.write('666<br>')
    // }, 500)

    // function set(){
    //     document.write('777<br>')
    // }

    // setInterval(set,1000)


    // let time = setInterval(function () {
    //   document.write('666<br>')
    // }, 1000)

    // clearInterval(time)
    // console.log(time)

    // let times = setInterval(function () {
    //   document.write('777<br>')
    // }, 1000)

    // console.log(times)


    let i = 10
    setInterval(function () {
      i--
      console.log(i)
    }, 1000)

  </script>
</body>

</html>